<!-- BEGIN FORM-->
<form action="{{route('profile-form', ['id' => $User->id])}}" method="post" class="form-horizontal" id="form-profile">
    <div class="form-body">
        <div class="alert alert-danger display-hide">
            <button class="close" data-close="alert"></button>
            {{ trans('validation.custom.error-title') }}
        </div>
        <div class="alert alert-success display-hide">
            <button class="close" data-close="alert"></button>
            {{ trans('validation.custom.success-title') }}
        </div>
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4" for="saint">{{ trans('user.saint') }}</label>
                    <div class="col-md-8">
                        <input type="text" value="{{ $User->saint }}" name="saint" id="saint" class="form-control">
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4" for="username">{{ trans('user.username') }} <span class="required">*</span></label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" value="{{ $User->username }}" name="username" id="username">
                    </div>
                </div>
            </div>
        </div>
        <!--/row-->
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4" for="gender">{{ trans('user.gender-name') }}</label>
                    <div class="col-md-8">
                        <select class="form-control" name="gender" id="gender">
                            @foreach ( trans('user.gender') as $key => $value)
                            <option value="{{ $key }}" {{ $key == $User->gender ? 'selected="selected"' : null }}>{{ $value }}</option>
                            @endforeach
                        </select>
                    </div>
                </div>
            </div>
            <!--/span-->
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4" for="birthday">{{ trans('user.birthday') }} <span class="required">*</span></label>
                    <div class="col-md-8">
                        <div class="input-group date date-picker" data-date-format="dd-mm-yyyy">
                            <input type="text" class="form-control" id="birthday" readonly value="{{ CNamHoa::ConvertDate($User->birthday) }}" name="birthday">
                            <span class="input-group-btn">
                                <button class="btn" type="button"><i class="fa fa-calendar"></i></button>
                            </span>
                        </div>
                    </div>
                </div>
            </div>
            <!--/span-->
        </div>
        <!--/row-->
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4" for="usertype">{{ trans('user.usertype') }}</label>
                    <div class="col-md-8">
                        <select class="form-control" name="usertype" id="usertype">
                            @foreach($Option['USERTYPE'] as $sKey => $sValue)
                            <option value="{{ $sValue->key }}" {{ $sValue->key == $User->usertype ? 'selected="selected"' : null }}>{{ $sValue->data }}</option>
                            @endforeach
                        </select>
                    </div>
                </div>
            </div>
            <!--/span-->
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4" for="usercrew">{{ trans('user.usercrew') }}</label>
                    <div class="col-md-8">
                        <select class="form-control" name="usercrew" id="usercrew">
                            <option value=""></option>
                            @foreach($Option['USERCREW'] as $sKey => $sValue)
                            <option value="{{ $sValue->key }}" {{ $sValue->key == $User->usercrew ? 'selected="selected"' : null }}>{{ $sValue->data }}</option>
                            @endforeach
                        </select>
                    </div>
                </div>
            </div>
            <!--/span-->
        </div>
        <!--/row-->
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4" for="eucharist_date">{{ trans('user.eucharist-date') }}</label>
                    <div class="col-md-8">
                        <div class="input-group date date-picker" data-date-format="dd-mm-yyyy">
                            <input type="text" class="form-control" id="eucharist_date" readonly value="{{ CNamHoa::ConvertDate($User->eucharist_date) }}" name="eucharist_date">
                            <span class="input-group-btn">
                                <button class="btn" type="button"><i class="fa fa-calendar"></i></button>
                            </span>
                        </div>
                    </div>
                </div>
            </div>
            <!--/span-->
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4" for="confirmation_date">{{ trans('user.confirmation-date') }}</label>
                    <div class="col-md-8">
                        <div class="input-group date date-picker" data-date-format="dd-mm-yyyy">
                            <input type="text" class="form-control" id="confirmation_date" readonly value="{{ CNamHoa::ConvertDate($User->confirmation_date) }}" name="confirmation_date">
                            <span class="input-group-btn">
                                <button class="btn" type="button"><i class="fa fa-calendar"></i></button>
                            </span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--/row-->
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4" for="parish">{{ trans('user.parish') }}</label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" id="parish" value="{{ $User->parish }}" name="parish">
                    </div>
                </div>
            </div>
            <!--/span-->
        </div>
        <!--/row-->
        <h3 class="form-section">{{ trans('user-pages.create.contact') }}</h3>
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4" for="email">{{ trans('user.email') }}</label>
                    <div class="col-md-8">
                        <input type="text" value="{{ $User->email }}" name="email" id="email" class="form-control">
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-4" for="phone">{{ trans('user.phone') }}</label>
                    <div class="col-md-8">
                        <input type="text" value="{{ $User->phone }}" name="phone" id="phone" class="form-control">
                    </div>
                </div>
            </div>
        </div>
        <!--/row-->
        <div class="row">
            <div class="col-md-12">
                <div class="form-group">
                    <label class="control-label col-md-2" for="address">{{ trans('user.address') }}</label>
                    <div class="col-md-10">
                        <input type="text" value="{{ $User->address }}" name="address" id="address" class="form-control">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-actions fluid">
        <div class="row">
            <div class="col-md-6">
                <div class="col-md-offset-3 col-md-8">
                    <button type="submit" class="btn green {{ CNamHoa::getHideClass('profile-form') }}">{{ trans('system.button.submit') }}</button>
                </div>
            </div>
            <div class="col-md-6">
            </div>
        </div>
    </div>
</form>
<!-- END FORM-->

{{ HTML::style('assets/global/plugins/bootstrap-datepicker/css/datepicker.css') }}

{{ HTML::script('assets/global/plugins/jquery-validation/js/jquery.validate.min.js') }}
{{ HTML::script('assets/global/plugins/jquery-validation/js/additional-methods.min.js') }}
{{ HTML::script('assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js') }}
{{ HTML::script('assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.vi.js') }}

{{ HTML::script('assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.vi.js') }}

{{ HTML::script('assets/admin/pages/scripts/profile-update-info.js') }}

<script type="text/javascript">
    ProfileUpdate.init();
</script>